package com.gable.report.service.impl;

import com.gable.report.dao.ISetRepeatRepairDao;
import com.gable.report.service.SetRepeatRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by lvdouStart on 2017/6/7.
 */
@Service
public class SetRepeatRepairServiceImpl implements SetRepeatRepairService {

    @Autowired
    ISetRepeatRepairDao iSetRepeatRepairDao;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void setIfRepeatRepair(Long hospitalId) {
        iSetRepeatRepairDao.setIfRepeatRepair(hospitalId);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void setIfAreaRepeatRepair(Long areaId) {
        iSetRepeatRepairDao.setIfAreaRepeatRepair(areaId);
    }
}
